require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 2,["7"] = 2,["8"] = 4,["9"] = 4,["10"] = 4,["11"] = 4,["13"] = 4,["14"] = 6,["15"] = 12,["16"] = 13,["17"] = 14,["18"] = 15,["19"] = 16,["21"] = 12,["22"] = 4});
local ____exports = {}
local ____Ecs = require("solar.ecs.Ecs")
local System = ____Ecs.System
local ____EntityDecayCom = require("solar.ecs.EntityDecayCom")
local EntityDecayCom = ____EntityDecayCom.default
____exports.default = __TS__Class()
local EntityDecaySystem = ____exports.default
EntityDecaySystem.name = "EntityDecaySystem"
__TS__ClassExtends(EntityDecaySystem, System)
function EntityDecaySystem.prototype.____constructor(self)
    System.prototype.____constructor(self, {EntityDecayCom.type})
end
function EntityDecaySystem.prototype.update(self, time, delta, entity)
    local entityDecayCom = EntityDecayCom:oneFrom(entity)
    entityDecayCom.data.lifeTime = entityDecayCom.data.lifeTime - delta
    if entityDecayCom.data.lifeTime <= 0 then
        self.world:removeEntity(entity)
    end
end
____exports.default = EntityDecaySystem
return ____exports
